module.exports = app => {
    return async (ctx, next) => {
        ctx.socket.emit('res', 'packet received!');
        //console.log('packet:', this.packet);
        //console.log('id:', { msg: 'welcome', id: ctx.socket.id });
        await next();
    };
};